<?php

return [
    'menu' => [
        'user' => [  /// controller名
            'name' => '用户管理',
            'ico' => '&#xe726;',
            'sub' => [
                'index' => ['name' => '用户列表', 'uri' => '/user/index', 'show' => true, 'method' => 'get'],  //index 方法名
                'user_edit' => ['name' => '用户列表编辑', 'uri' => '/user/user_edit', 'show' => false, 'method' => 'get|post'],  //index 方法名
            ],
            'show' => true,
        ],
        'merchant' => [  /// controller名
            'name' => '商家管理',
            'ico' => '&#xe726;',
            'sub' => [
                'index' => ['name' => '商家列表', 'uri' => '/merchant/index', 'show' => true, 'method' => 'get'],  //index 方法名
                'merchantstr' => ['name' => '商家审核', 'uri' => '/merchant/merchantstr', 'show' => false, 'method' => 'get|post'],  //index 方法名
                'merchat_edit' => ['name' => '商家编辑|添加', 'uri' => '/merchant/merchat_edit', 'show' => false, 'method' => 'get|post'],  //index 方法名
                'merchantitem' => ['name' => '项目列表', 'uri' => '/merchant/merchantitem', 'show' => true, 'method' => 'get'],  //index 方法名
                'merchantitem_edit' => ['name' => '项目列表编辑', 'uri' => '/merchant/merchantitem_edit', 'show' => false, 'method' => 'get|post'],  //index 方法名
            ],
            'show' => true,
        ],
        'admin' => [  /// controller名
            'name' => '权限管理',
            'ico' => '&#xe726;',
            'sub' => [
                'index' => ['name' => '管理员列表', 'uri' => '/admin/index', 'show' => true, 'method' => 'get'],  //index 方法名
                'input' => ['name' => '添加管理员', 'uri' => '/admin/input', 'show' => false, 'method' => 'get|post'],
                'del' => ['name' => '删除管理员', 'uri' => '/admin/del', 'show' => false, 'method' => 'get|post'],
                'login_log' => ['name' => '登录日志', 'uri' => '/admin/login_log', 'show' => true, 'method' => 'get']
            ],
            'show' => true,
        ],
        'system' => [
            'name' => '系统管理',
            'ico' => '&#xe6ae;',
            'sub' => [
                'index' => ['name' => '系统配置', 'uri' => '/system/index', 'show' => true, 'method' => 'get'], // show 在菜单中是否显示
                'config_edit' => ['name' => '修改', 'uri' => '/system/config_edit', 'show' => false, 'method' => 'get|post'],
                'project' => ['name' => '类别管理', 'uri' => '/system/project', 'show' => true, 'method' => 'get'], // show 在菜单中是否显示
                'project_add' => ['name' => '添加/修改', 'uri' => '/system/project_add', 'show' => false, 'method' => 'get|post'],
                'project_del' => ['name' => '删除', 'uri' => '/system/project_del', 'show' => false, 'method' => 'get|post'],
                'annou' => ['name' => '帮助|公告|关于我们', 'uri' => '/system/annou', 'show' => true, 'method' => 'get'], // show 在菜单中是否显示
                'annou_add' => ['name' => '添加/修改', 'uri' => '/system/annou_add', 'show' => false, 'method' => 'get|post'],
                'annou_del' => ['name' => '删除', 'uri' => '/system/annou_del', 'show' => false, 'method' => 'get|post'],
            ],
            'show' => true, //是否打开这个功能
        ]
    ]
];
